<template>
  <!-- 添加或修改付款申请单对话框 -->
  <el-dialog :title="title" :visible.sync="open" width="80%" append-to-body :close-on-click-modal="false" v-dialogDrag>
    <el-row :gutter="10">
      <finance-buy-invoice-section :invoice-id="invoiceId" ref="financeBuyInvoiceSection"></finance-buy-invoice-section>
    </el-row>
    <div slot="footer" class="dialog-footer">
      <el-button @click="cancel">取 消</el-button>
    </div>
  </el-dialog>
</template>

<script>
import {accAdd, downloadFile, getById} from '@/api/manage';
import CaigouDetaiList from "@/views/develop/lvBuy/module/CaigouDetailList.vue";
import BuyGoodsList from "@/views/develop/payApply/module/BuyGoodsList.vue";
import FileUploadShow from "@/components/FileUpload/FileUploadShow.vue";
import PayApplyDetailSection from "@/views/develop/payApply/PayApplyDetailSection.vue";
import FinanceBuyInvoiceSection from "@/views/develop/finance/financeBuyInvoice/FinanceBuyInvoiceSection.vue";

export default {
  name: "FinanceBuyInvoiceDetail",
  dicts: ["buy_invoice_status"],
  components: {
    FinanceBuyInvoiceSection
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      activeName: "first",
      // 弹出层标题
      title: "采购发票详情",
      // 是否显示弹出层
      open: false,
      // 表单参数
      invoiceId:null,
    };
  },
  created() {

  },
  methods: {
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },

    handleShow(row) {
      this.open = true;
      this.invoiceId = row.id;
    },

    handleShowByAp(row) {
      this.open = true;
      this.invoiceId = row.invoiceId;
    },


  }
};
</script>

